package chixing.day02;

public class SwitchCaseDemo {
    public static void main(String[] args) {
        //1.break:结束当前switch-case
        //2.switch-case后面的数据类型：能够转换成int的数据类型+String+enum
        //byte，short,int,char,String,enum,Byte,Short,
        int month=3;
        switch (month){
            case 1:
                System.out.println("31天");
                break;
            case 2:
                System.out.println("29天");
                break;
            case 3:
                System.out.println("31天");
//                break;
            case 4:
                System.out.println("30天");
                break;
            default:
                System.out.println("未知");
        }




    }
}
